<template>
  <div id="register">
    <LoginWp>
      <Login-container slot="login-container">
        <h4 slot="dl">重置密码</h4>
        <h4 slot="zs"></h4>
        <h4 slot="yzm"></h4>
        <div slot="other" class="other">
          <van-field
            v-model="sms"
            center
            clearable
            placeholder="验证码"
            class="yzm"
          >
          </van-field>
          <slot name="yzm">
            <van-button type="primary" size="normal" class="fsyzm"
              >xyz</van-button
            >
            <span class="change">看不清换一张</span></slot
          >
        </div>
        <van-field
          slot="re-psw"
          class="bk"
          v-model="password"
          type="password"
          name="密码"
          placeholder="请再次输入密码确认"
          :rules="[{ required: true, message: '请填写密码' }]"
        />
        <div slot="ph-yzm" class="ph-yzm">
          <van-field v-model="sms" center clearable placeholder="短信验证码">
          </van-field>
          <van-button type="primary" class="get-yzm">获取验证码</van-button>
        </div>
        <div slot="lgzc" class="btn">
          <span>登录</span>
        </div>
        <div slot="agree-login"></div>
        <div slot="bt"></div>
      </Login-container>
    </LoginWp>
  </div>
</template>

<script>
import LoginWp from './loginWp.vue';
import LoginContainer from './loginContainer.vue';
export default {
  name: 'register',
  data() {
    return {
      username: '',
      password: '',
      checked: false,
      sms: '',
      activeIcon: require('./act.png'),
      inactiveIcon: require('./inact.png'),
    };
  },
  methods: {},
  mounted() {
    document.querySelector('.search-wp h3').innerText = '忘记密码';
  },
  components: {
    LoginWp,
    LoginContainer,
  },
};
</script>

<style scoped>
::v-deep.ph-yzm {
  margin-top: -20px;
  margin-bottom: 14px;
  position: relative;
}
::v-deep.get-yzm {
  position: absolute;
  width: 110px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
  top: 26px;
  right: 10px;
  background-color: #498e3d;
  border: 0;
}
::v-deep .yzm {
  width: 160px;
  display: inline-block;
}
::v-deep .fsyzm {
  width: 90px;
  margin-left: 30px;
  background-color: #498e3d;
  border: 0;
  transform: translateY(-22px);
}
span.change {
  color: #f08200;
  font-size: 14px;
  margin-left: 14px;
  vertical-align: 16px;
}
.btn {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 20px;
}
.btn span {
  width: 100%;
  height: 46px;
  border-radius: 5px;
  color: #fff;
  text-align: center;
  line-height: 46px;
  font-size: 18px;
  background-color: #f08200;
  cursor: pointer;
}
.bk {
  margin-top: 20px;
  transform: translateY(-20px);
}
.other {
  transform: translateY(10px);
}
</style>
